package com.example.paper.mvp.view.user.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.paper.R;
import com.example.paper.brean.UserMenuEntivy;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class UserMenuAdapter extends BaseQuickAdapter<UserMenuEntivy, BaseViewHolder> {

    public UserMenuAdapter() {
        super(R.layout.item_user_menu);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, UserMenuEntivy userMenuEntivy) {
        baseViewHolder.setText(R.id.user_menu_item_name,userMenuEntivy.name);
        baseViewHolder.setImageResource(R.id.user_menu_icon,userMenuEntivy.imgId);

    }
}
